package server

import (
	"google.golang.org/grpc"
	v1 "grpc-demo/api/product/v1"
	"grpc-demo/app/grpc-demo-server/internal/service"
)

func NewGRPCServer(ps *service.ProductService) *grpc.Server {
	server := grpc.NewServer()
	v1.RegisterProductServer(server, ps)
	return server
}
